/*
 * StopTaskDescription.java
 * 
 * last update: 16.01.2010 by Stefan Saru
 * 
 * author:	Alec(panovici@elcom.pub.ro)
 * 
 * Obs:
 */

package engine;

@SuppressWarnings("serial")
class StopTaskDescription extends FinishTaskDescription{

	public StopTaskDescription(int delayBefore, int line,
			NameSpaceDescription nsd, int code){
		super(delayBefore, line, nsd, code);
	}

	DefaultInstruction instantiate(NameSpace ns)throws ParseException{
		return new StopTask(ns, delayBefore, this, code,
				next != null ? next.instantiate(ns) : null);
	}

	public String toString(){
		return "$stop" + (code != 0 ? "(" + code + ")" : "");
	}
}

